set -e
if [ -e dist ]; then
  rm -rf dist
fi
tsc -p tsconfig.dev.json
rm -rf ./dist/**/*.d.ts
rm -rf ./dist/**/*spec.js
rm -rf ./dist/**/*spec.js.map
#cp -r src/ng-add/files dist/src/ng-add
cp src/collection.json dist/src/collection.json
cp src/ng-add/schema.json dist/src/ng-add/schema.json
cp package.json dist/package.json
